package com.csgc.camera.biz.vip

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import com.csgc.camera.base.FragmentLazyPagerAdapter
import com.csgc.camera.bean.VipEquitiesPageData

class VipEquitiesPageAdapter(fragmentManager: FragmentManager,val list:List<VipEquitiesPageData>):FragmentLazyPagerAdapter(fragmentManager) {


    override fun getCount(): Int {
        return list.size
    }

    override fun getItem(position: Int): Fragment {
        return VipEquitiesFragment.getInstance(list[position],position+1)
    }

    override fun getPageTitle(position: Int): CharSequence {
        return ""
    }
}